<template>
  <div class="home">
    <swiper ref="mySwiper" :options="{ loop: true, pagination: { el: '.swiper-pagination' } }">
      <swiper-slide><img class="header-img" :src="require('@/assets/swiper.png')" alt=""></swiper-slide>
      <swiper-slide><img class="header-img" :src="require('@/assets/swiper.png')" alt=""></swiper-slide>
      <swiper-slide><img class="header-img" :src="require('@/assets/swiper.png')" alt=""></swiper-slide>
      <swiper-slide><img class="header-img" :src="require('@/assets/swiper.png')" alt=""></swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
    <div class="content">
      <div class="title">
        <div class="name">优秀项目</div>
        <div class="more">更多 ></div>
      </div>
      <swiper ref="mySwiper" :options="{ loop: true, pagination: { el: '.swiper-pagination' } }">
        <swiper-slide v-for="(items, indexs) in 4" :key="indexs">
          <div class="project">
            <div class="project-content" v-for="(item, index) in 6" :key="index">
              <el-image style="width: 384px; height: 180px;" :src="require('@/assets/car1.png')" fit="fill"></el-image>
              <div class="project-box">
                <div class="project-title">基于车联网的自动红绿灯控制系统</div>
                <div class="project-detail">系统采用车联网V2I通讯模式,利用V2I备份利用V2I备份利用V2I备份利用V2I备份</div>
              </div>
            </div>
          </div>
        </swiper-slide>
        <div class="swiper-pagination" slot="pagination"></div>
      </swiper>

      <div class="title">
        <div class="name">精选导师</div>
        <div class="more">更多 ></div>
      </div>
      <div class="teacher">
        <div class="left-box">
          <div class="teacher-title">优秀导师</div>
          <div class="teacher-detail">优异教师等你发现</div>
          <div class="teacher-detail">与你一起学习，一起成长</div>
          <div class="teacher-icon">
            <i class="el-icon-back"></i>
            <i class="el-icon-right"></i>
          </div>
        </div>
        <div class="right-box">
          <swiper ref="mySwiper" :options="{ loop: true }">
            <swiper-slide v-for="(items, indexs) in 4" :key="indexs">
              <div class="teacher-content">
                <div class="teacher-box" v-for="(item,index) in 3" :key="index">
                  <div class="show">
                    <el-image style="width: 120px; height: 120px; border-radius:60px" :src="url"></el-image>
                    <div class="name">陈道明</div>
                    <div class="line"></div>
                    <div>已指导项目 6 个 </div>
                  </div>
                  <div class="ascription">
                    <div class="teacher-title">互联网金融、IT服务</div>
                    <div>广州大学</div>
                  </div>
                  <div class="detail">广州大学广州大学广州大学广州大学广州大学广州大学广州大学广州大学</div>
                </div>
              </div>
            </swiper-slide>
          </swiper>
        </div>
      </div>

      <div class="title">
        <div class="name">精选课程</div>
        <div class="more">更多 ></div>
      </div>
      <swiper ref="mySwiper" :options="{ loop: true, pagination: { el: '.swiper-pagination' } }">
        <swiper-slide v-for="(items, indexs) in 4" :key="indexs">
          <div class="curriculum">
            <div class="curriculum-content" v-for="(item, index) in 4" :key="index">
              <el-image style="width: 384px; height: 160px;" :src="require('@/assets/car1.png')" fit="fill"></el-image>
              <div class="curriculum-box">
                <div class="curriculum-title">如何让你的产品快速增长</div>
                <div class="curriculum-detail">互联网运营是个很严谨的东西，但是也有一定备份 </div>
              </div>
              <div class="curriculum-love">
                <i class="iconfont icon-xin1"></i>
                <div class="curriculum-learning">105人学过</div>
              </div>
            </div>
          </div>
        </swiper-slide>
        <div class="swiper-pagination" slot="pagination"></div>
      </swiper>

      <div class="line"></div>

      <div class="entrepreneurship">
        <div class="game-box">
          <div class="entrepreneurship-title"><div class="entrepreneurship-name">双创大赛</div><div class="entrepreneurship-more">更多 ></div></div>
          <ul class="entrepreneurship-ul">
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
          </ul>
        </div>
        <div class="game-box">
          <div class="entrepreneurship-title"><div class="entrepreneurship-name">双创活动</div><div class="entrepreneurship-more">更多 ></div></div>
          <ul class="entrepreneurship-ul">
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
          </ul>
        </div>
        <div class="information-box">
          <div class="entrepreneurship-title"><div class="entrepreneurship-name">双创资讯</div><div class="entrepreneurship-more">更多 ></div></div>
          <ul class="entrepreneurship-ul">
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
            <li>计算机软件设计大赛</li>
          </ul>
        </div>
      </div>
    </div>

    <div class="partner">
      <div class="partner-box">
        <div class="title">投资机构</div>
        <div class="partner-list">
          <el-image style="width: 226px; height: 100px; background:rgba(255,255,255,1); margin-bottom: 10px;" :src="require('@/assets/car2.png')" fit="contain" v-for="(item,index) in 5" :key="index"></el-image>
        </div>
        <div class="title">合作企业</div>
        <div class="partner-list">
          <el-image style="width: 226px; height: 100px; background:rgba(255,255,255,1); margin-bottom: 10px;" :src="require('@/assets/car2.png')" fit="contain" v-for="(item,index) in 5" :key="index"></el-image>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'carrousel',
  data () {
    return {
    }
  }
}
</script>

<style lang="scss" scoped>
.home {
  .header-img {
    width: 100%;
    height: auto;
  }
  .content {
    width: 1200px;
    margin: 0 auto;
    .title {
      position: relative;
      margin-top: 56px;
      margin-bottom: 26px;
      text-align: center;
      .name {
        position: relative;
        display: inline-block;
        font-size:28px;
        font-weight: 500;
        color:rgba(6,17,37,1);
        &::before {
          content: '';
          position: absolute;
          left: -43px;
          top: 50%;
          width:25px;
          height:3px;
          background:rgba(209,220,222,1);
        }
        &::after {
          content: '';
          position: absolute;
          right: -43px;
          top: 50%;
          width:25px;
          height:3px;
          background:rgba(209,220,222,1);
        }
      }
      .more {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size:14px;
        color:rgba(130,138,153,1);
        &:hover {
          color:rgba(46,141,246,1);
        }
      }
    }
    .project {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      align-content: flex-start;
      height:660px;
      .project-content {
        margin-top: 5px;
        margin-bottom: 24px;
        width:384px;
        height:290px;
        background:rgba(255,255,255,1);
        border-radius:12px;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        overflow: hidden;
        transition: all .5s;
        cursor: pointer;
        .project-box {
          height: 75px;
          width: 100%;
          padding: 15px 16px 20px;
          .project-title {
            font-size:16px;
            font-weight: 600;
            color:rgba(19,35,64,1);
            margin-bottom: 10px;
          }
          .project-detail {
            font-size:14px;
            color:rgba(51,69,102,1);
          }
        }
        &:hover {
          transform: translateY(-5px);
          box-shadow: 0 2px 10px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
        }
      }
    }
    .teacher {
      height: 320px;
      background:linear-gradient(135deg,rgba(117,176,247,1) 0%,rgba(129,202,255,1) 100%);
      border-radius:12px;
      padding: 48px 80px 48px 100px;
      display: flex;
      align-items: center;
      .left-box {
        width: 220px;
        .teacher-title {
          margin-bottom: 14px;
          font-size:36px;
          font-weight: 500;
          color:rgba(255,255,255,1);
        }
        .teacher-detail {
          margin-top: 10px;
          font-size:18px;
          color:rgba(255,255,255,1);
        }
        .teacher-icon {
          margin-top: 36px;
          font-size: 32px;
          color: #fff;
          display: flex;
          justify-content: space-between;
          .el-icon-right {
            margin-right: 100px;
          }
        }
      }
      .right-box {
        width: 800px;
        .teacher-content {
          display: flex;
          justify-content: space-between;
          width: 100%;
          position: relative;
          .teacher-box {
            width:221px;
            height:320px;
            background:rgba(255,255,255,1);
            border-radius:12px;
            padding: 31px 12px 12px;
            position: relative;
            .show {
              display: flex;
              flex-direction: column;
              justify-content: center;
              align-items: center;
              font-size: 14px;
              color: rgba(51, 69, 102, 1);
              .name {
                font-size: 16px;
                color: rgba(19, 35, 64, 1);
                margin-top: 24px;
                font-weight: 500;
              }
              .line {
                width: 88px;
                height: 3px;
                background: linear-gradient(
                  135deg,
                  rgba(42, 148, 255, 1) 0%,
                  rgba(140, 109, 255, 1) 100%
                );
                margin: 16px 0;
              }
            }
            .ascription {
              display: flex;
              align-items: center;
              font-size: 12px;
              color: rgba(104, 115, 136, 1);
              margin-top: 50px;
              .teacher-title {
                flex: 1;
                font-size: 12px;
                color: rgba(83, 56, 217, 1);
              }
            }
            .detail {
              display: none;
              position: absolute;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
              padding: 18px 18px 0 18px;
              background: linear-gradient(135deg, rgba(42,148,255,1) 0%, rgba(140,109,255,1) 100%);
              border-radius: 12px;
              color: #fff;
              transition: all 0.5s;
            }
            &:hover {
              .detail {
                display: block;
              }
            }
          }
        }
      }
    }
    .curriculum {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      height:350px;
      .curriculum-content {
        margin-top: 5px;
        margin-bottom: 24px;
        width:282px;
        height:300px;
        background:rgba(255,255,255,1);
        border-radius:12px;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        overflow: hidden;
        transition: all .5s;
        cursor: pointer;
        .curriculum-box {
          width: 100%;
          height: 80px;
          padding: 15px 16px;
          .curriculum-title {
            font-size:16px;
            font-weight: 600;
            color:rgba(19,35,64,1);
            margin-bottom: 10px;
          }
          .curriculum-detail {
            font-size:14px;
            color:rgba(51,69,102,1);
          }
        }
        .curriculum-love {
          padding: 0 16px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          width: 100%;
          .iconfont {
            font-size: 18px;
          }
          .curriculum-learning {
            font-size:14px;
            font-weight:400;
            color:rgba(104,115,136,1);
          }
        }
        &:hover {
          transform: translateY(-5px);
          box-shadow: 0 2px 10px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
        }
      }
    }
    .line {
      margin: 40px 5px;
      height: 2px;
      background-color:rgba(0,0,0,0.1);
    }
    .entrepreneurship {
      display: flex;
      justify-content: space-between;
      .game-box {
        padding: 21px 18px;
        width:284px;
        height:188px;
        background:rgba(255,255,255,1);
        border-radius:12px;
      }
      .information-box {
        margin-bottom: 88px;
        padding: 21px 18px;
        width:494px;
        height:188px;
        background:rgba(255,255,255,1);
        border-radius:12px;
      }
      .entrepreneurship-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 0;
          width:3px;
          height:24px;
          background:linear-gradient(135deg,rgba(245,64,64,1) 0%,rgba(255,105,105,1) 0%,rgba(232,30,30,1) 100%);
          border-radius:2px;
        }
        .entrepreneurship-name {
          margin-left: 12px;
          font-size:18px;
          font-weight: 500;
          color:rgba(6,17,37,1);
        }
        .entrepreneurship-more {
          font-size:12px;
          font-weight:400;
          color:rgba(104,115,136,1);
          cursor: pointer;
          &:hover {
            color:rgba(46,141,246,1);
          }
        }
      }
      .entrepreneurship-ul {
        padding-left: 14px;
        margin-top: 16px;
        margin-bottom: 0px;
        li {
          margin-top: 16px;
          font-size:14px;
          color:rgba(51,69,102,1);
          cursor: pointer;
          &:hover {
            color:rgba(46,141,246,1);
          }
        }
      }
    }
  }
  .partner {
    padding:56px 0 30px;
    background:rgba(240,244,247,1);
    .partner-box {
      width: 1200px;
      margin: 0 auto;
      text-align: center;
      .title {
        position: relative;
        margin-top: 30;
        margin-bottom: 38px;
        display: inline-block;
        font-size:28px;
        font-weight: bold;
        color:rgba(6,17,37,1);
        &::before {
          content: '';
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          bottom: -10px;
          width:26px;
          height:6px;
          background:rgba(232,30,30,1);
          border-radius:4px;
        }
      }
      .partner-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-bottom: 62px;
      }
    }
  }
}
</style>
